package com.huilian.iotbox.data.service.impl;

import com.huilian.iotbox.data.dao.BaseOrderDao;
import com.huilian.iotbox.data.dto.OrderRefundDto;
import com.huilian.iotbox.data.po.Order;
import com.huilian.iotbox.data.service.BaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenqiwen
 * @CreateDate: 2021-07-19-10-49
 * @Description:
 */
@Service
public class BaseOrderServiceImpl implements BaseOrderService {

    @Autowired
    private BaseOrderDao baseOrderDao;



    @Override
    public Order findOneOrderById(Long orderId) {
        return baseOrderDao.getById(orderId);
    }

    @Override
    public Integer checkOrderAndRefundDateDif(Long orderId) {
        return baseOrderDao.checkOrderAndRefundDateDif(orderId);
    }
}
